import {
  FILTER,
  ALL
} from '../constants/actionTypes';

//根据store的传来的原数据和action,数据处理
const todoState = (state = ALL, action) => {
  switch (action.type) {

    // 判断展示范围
    case FILTER:
      return action.fliter;
    default:
      return state;
  }
};
export default todoState;